import pygtk
pygtk.require('2.0')
import gtk

class MyWindow:
    def __init__(self, title, width, height):
        self.window = gtk.Window()
        self.window.set_title(title)
        self.window.set_default_size(width, height)
        self.window.connect('destroy', lambda q:gtk.main_quit())

        self.fixed = gtk.Fixed()
        self.label = gtk.Label('PyGTK')
        self.fixed.put(self.label, 10, 5)
        self.button = gtk.Button('Move')
        self.button.connect('clicked', self.OnButton, 'Move')

        self.fixed.put(self.button, 120, 150)
        self.window.add(self.fixed)
        self.label.show()
        self.button.show()
        self.fixed.show()
        self.window.show()

    def OnButton(self, widget, data):
        self.fixed.move(self.label, 100, 50)
        print 'Move!'

    def main(self):
        gtk.main()

if __name__ == '__main__':
    window = MyWindow('PyGTK', 300, 200)
    window.main()
